import java.util.HashSet;
import java.util.Set;
public class Main {
    public static void main(String[] args) {
        Student stu1=new Student("2023","zhang","man");
        Student stu2=new Student("2022","chen","man");
        Student stu3=new Student("2021","zhou","woman");
        Set<Student> stu=new HashSet<>();
        stu.add(stu1);
        stu.add(stu2);
        stu.add(stu3);
        for(Student student:stu){
            System.out.println("学号"+student.sNO+"姓名"+student.sName+"性别"+student.sSex);
        }
    }
}